package com.gitee.deament.server.core.cli;

import com.gitee.deament.server.core.annotation.CliHander;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;
@CliHander(command="QUIT")
public class QUITcli extends AbstractCli{
    @Override
    public void executeCli(ChannelHandlerContext channelHandlerContext, String command) {
        channelHandlerContext.channel().close();
        channelHandlerContext.channel().writeAndFlush(new TextWebSocketFrame("OK"));

    }
}
